package com.gln.bloger.dao;

import java.util.List;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.Category;
import com.gln.bloger.pojos.Website;
/**
 * 
 * @author renxj
 *
 */
public interface CategoryDao extends BaseDao<Category>{
	/**
	 * for guest
	 * @param website
	 * @return
	 * @throws BlogerException
	 */
	public List<Category> getCategories(Website website) throws BlogerException;
	/**
	 * for author
	 * @param website
	 * @return
	 * @throws BlogerException
	 */
	public List<Category> getAllCategories(Website website) throws BlogerException;

	/**
	 * get by category name
	 * @param website
	 * @param cateName
	 * @return
	 * @throws BlogerException
	 */
	public Category getByName(Website website, String cateName) throws BlogerException;
}
